package com.travel.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Data
@Configuration
@PropertySource(value = "classpath:aliOSS.properties")
@ConfigurationProperties("alioss")
public class AliOSSConfig {
    @Value("${ALIOSS.ACCESSKEYID}")
    private String accessKeyId;

    @Value("${ALIOSS.ACCESSKEYSECRET}")
    private String accessKeySecret;

    @Value("${ALIOSS.ENDPOINT}")
    private String endPoint;

    @Value("${ALIOSS.BUCKETNAME}")
    private String bucketName;

    @Value("${ALIOSS.SCENIC}")
    private String scenic;

    @Value("${ALIOSS.HOTEL}")
    private String hotel;

    @Value("${ALIOSS.ADVERTISE}")
    private String advertise;

    @Value("${ALIOSS.ROUTE}")
    private String route;

    @Value("${ALIOSS.AVATAR}")
    private String avatar;

    @Value("${ALIOSS.STRATEGY}")
    private String strategy;
}
